package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.quality.QualityWarehouseWarrant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author GE-LV5
 * @create 2023/3/1 11:30
 */
public interface QualityWarehouseWarrantMapper extends BaseMapper<QualityWarehouseWarrant> {



    /**
     * 查询入库单
     *
     * @param warrant 入库单
     */
    public List<QualityWarehouseWarrant> selectTransferSlipList(@Param("vo") QualityWarehouseWarrant warrant);

    /**
     * 批量入库单
     *
     * @param ids 需要删除的区域主键集合
     * @return 结果
     *//*
    public int deleteSetAreaByIds(List<Long> ids);
*/

    /**
     * 删除入库单
     * @param id
     * @return
     */
    public int deleteEquipmentLedgerById(@Param("id") Long id);


    /**
     * 新增入库单
     *
     * @param warrant 入库单
     * @return 结果
     */
    public int insertEquipmentLedger(QualityWarehouseWarrant warrant);
    /**
     * 修改入库单
     *
     * @param warrant 入库单
     * @return 结果
     */
    public int updateOrdersManual(QualityWarehouseWarrant warrant);

    /**
     * 根据id查询详情
     * @param id
     * @return
     */
    public QualityWarehouseWarrant  warehouseById(Long id);
}
